home *** CD-ROM | disk | FTP | other *** search
- /*
- * MyYield(): process any pending
- * messages to the application,
- * and return when none in the queue
- */
-
- void MyYield()
- {
- MSG msg;
- while ( PeekMessage( &msg, NULL,
- NULL, NULL, PM_REMOVE ) ) {
- if ( TranslateAccelerator(
- hMainWnd, hAccTable, &msg) )
- continue;
- TranslateMessage( &msg );
- DispatchMessage( &msg );
- }
- }
-